package com.phoenix;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

import java.security.Principal;

/**
 * Created by lilongfei on 16/6/21.
 */
@FeignClient("clouddemoservice")
interface RemoteHelloService {

    @RequestMapping(value = "test", method = RequestMethod.GET)
    String remoteHello(@RequestParam("name") String name);
}